        <div class="dashboardWrapper">
            <header>
            	<table>
                	<tbody>
                    	<tr>
                        	<td class="logo">SUMMON</td>
                        	<td class="menu">
                            	<ul>
                                	<li>
                                    	<ul>
                                        	<li><a href="<?=base_url()?>dashboard/messages"><i class="icon-envelope"></i> Messages<span class="newMsgCount"></span></a></li>
                                        	<li><a href="<?=base_url()?>dashboard/restaurants"><i class="icon-glass"></i> Restaurants</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </td>
                        	<td class="user">
                                <div class="menuToggleBtn">
                                	<button class="btn" id="toggleMenu">
                                		<i class="icon-align-justify"></i>
                                    </button>
                                </div>
                                <div class="navbar navbar-static">
                                    <ul class="nav" role="navigation">
                                        <li class="dropdown">
                                            <ul class="nav pull-right">
                                                <li id="fat-menu" class="btn-group dropdown">
                                                    <button class="btn dropdown-toggle leftBtn" data-toggle="dropdown" role="button">
                                                        <span class="nameShow">
                                                        <?php
                                                            if($fullname!='')
                                                            {
                                                                echo '<i class="icon-user"></i> '.$fullname;
                                                            }
                                                            else
                                                            {
                                                                echo 'Guest!';	
                                                            }
                                                        ?>
                                                        </span>
                                                        <span class="nameHide">
                                                            <i class="icon-user"></i>
                                                        </span>

                                                    </button>
                                                    <button class="btn dropdown-toggle" data-toggle="dropdown">
                                                        <i class="icon-cog"></i>
                                                    </button>
                                                    <ul class="dropdown-menu" aria-labelledby="drop3" role="menu">
                                                        <li role="presentation">
                                                        	<span class="hiddenName"><?=$fullname?></span>
                                                            <p><?=$userType?></p>
                                                        </li>
                                                        <li role="presentation">
                                                            <a href="<?=base_url()?>dashboard/account_settings/<?=$myID?>" tabindex="-1" role="menuitem"><i class="icon-edit"></i> Account Settings</a>
                                                        </li>
                                                        <li class="divider" role="presentation"></li>
                                                        <li role="presentation">
                                                            <a href="<?=base_url()?>dashboard/logout" tabindex="-1" role="menuitem"><i class="icon-off"></i> Log Out</a>
                                                        </li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </header>
            <section>
                <div class="container-fluid">
                    <div class="row-fluid">
                        <div class="span2 leftWrapper" id="menuToToggle">
                        	<h2><i class="icon-tasks"></i> Menu</h2>
                        	<div class="hiddenMenu">
                            	<ul>
                                	<li>
                                    	<ul>
                                        	<li><a href="<?=base_url()?>dashboard/messages"><i class="icon-envelope"></i> Messages<span class="newMsgCount"></span></a></li>
                                        	<li><a href="<?=base_url()?>dashboard/restaurants"><i class="icon-glass"></i> Restaurants</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                            <div class="defaultMenu">
                            	<ul>
                                	<li>
                                    	<ul>
                                            <li><a href="<?=base_url()?>dashboard/reserved_lists"><i class="icon-folder-close"></i> Reserved Lists</a></li>
                                            <li><a href="<?=base_url()?>dashboard/list_users"><i class="icon-th-list"></i> Lists of Users</a></li>
                                        	<li><a href="<?=base_url()?>dashboard/accounts_analysis"><i class="icon-th"></i> Account &amp; Analysis System</a></li>
                                        	<li><a href="<?=base_url()?>dashboard/account_summary"><i class="icon-list-alt"></i> Summary of New Accounts</a></li>
                                            <li><a href="<?=base_url()?>dashboard/about_us"><i class="icon-info-sign"></i> About the company</a></li>
                                        </ul>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="span10 rightWrapper">
                        	<h2><i class="icon-edit"></i> Update Profile Information</h2>
                        	<!--Body content-->
                            <ul class="nav nav-tabs">
                                <?php
									if($intUserID==$this->session->userdata('intUserID') || $this->session->userdata('intAccountType')=='1')
									{
										if($intUserID==$this->session->userdata('intUserID'))
										{
											$myProIndicator = 'My Profile';
											$myUpIndicator = 'Update My Profile';
										}
										else
										{
											if($pageNotFound!='0')
											{
												$myProIndicator = 'Profile of '.$strUserFullName;
												$myUpIndicator = 'Update Profile of '.$strUserFullName;
											}
											else
											{
												$myProIndicator = 'My Profile';
												$myUpIndicator = 'Update My Profile';
											}
										}
								?>
                                <li>
                                	<a href="<?=base_url()?>dashboard/account_settings/<?=$userID?>"><i class="icon-user"></i> <?=$myProIndicator?></a>
                                </li>
                                <li class="active">
                                	<a href="<?=base_url()?>dashboard/update_profile/<?=$userID?>"><i class="icon-edit"></i> <?=$myUpIndicator?></a>
                                </li>
                                <?php
									}
									else
									{
										if($intUserID==$this->session->userdata('intUserID'))
										{
											$myProIndicator = 'My Profile';
											$myUpIndicator = 'Update My Profile';
										}
										else
										{
											if($pageNotFound!='0')
											{
												$myProIndicator = 'Profile of '.$strUserFullName;
												$myUpIndicator = 'Update Profile of '.$strUserFullName;
											}
											else
											{
												$myProIndicator = 'My Profile';
												$myUpIndicator = 'Update My Profile';
											}
										}
								?>
                                <li>
                                	<a href="<?=base_url()?>dashboard/account_settings/<?=$userID?>"><i class="icon-user"></i> <?=$myProIndicator?></a>
                                </li>
                                <?php
									}
								?>
                            </ul>
                            <div class="contentHolder">
                                <?php
                                    if($strMsg!='')
                                    {
                                        if($strMsg=='0')
                                        {
                                            $msg = '<div class="box error-box"> <span>Error: System error while sending the data, please try again.</span></div>';
                                        }
                                        else if($strMsg=='1')
                                        {
                                            $msg = '<div class="box success-box"> <span>Information was successfully updated!</span></div>';
                                        }
                                        else
                                        {
                                            $msg = '<div class="box error-box"> <span>E-mail is already taken!</span></div>';
                                        }
                                        echo $msg;
                                    }
                                ?>
                            	<?php
									if($pageNotFound!='0')
									{
										if($intUserID==$this->session->userdata('intUserID') || $this->session->userdata('intAccountType')=='1')
										{
								?>
                            	<form action="./<?=$userID?>" method="POST">
                                <dl class="dl-horizontal dl-header">
                                    <dt><h5><i class="icon-info-sign"></i> Basic Information</h5></dt>
                                </dl>
                                <dl class="dl-horizontal">
                                    <dt>Firstname</dt>
                                    <dd><input type="text" name="strFirstName" id="strFirstName" value="<?=$strEditFirstName?>" /></dd>
                                    <dt>Middle Initial</dt>
                                    <dd><input type="text" name="strMiddleName" id="strMiddleName" value="<?=$strEditMidName?>" /></dd>
                                    <dt>Lastname</dt>
                                    <dd><input type="text" name="strLastName" id="strLastName" value="<?=$strEditLastName?>" /></dd>
                                    <dt>Password</dt>
                                    <dd><input type="password" name="strPassword" id="strPassword" value="<?=$strEditUserPassword?>" /></dd>
                                    <dt>Confirm Password</dt>
                                    <dd><input type="password" name="strRePassword" id="strRePassword" value="<?=$strEditUserPassword?>" /></dd>
                                    <?php
										if($this->session->userdata('intAccountType')=='1')
										{
									?>
                                    <dt>User Role</dt>
                                    <dd>
                                    	<?php
											if($intEditUserType=='0')
											{
												$check0 = 'checked="checked"';
											}
											else
											{
												$check0 = '';
											}
											if($intEditUserType=='1')
											{
												$check1 = 'checked="checked"';
											}
											else
											{
												$check1 = '';
											}
											if($intEditUserType=='2')
											{
												$check2 = 'checked="checked"';
											}
											else
											{
												$check2 = '';
											}
										?>
                                        <label for="strClient" class="label label-important">
                                    		<input type="radio" name="strAccountType" id="strClient" value="0" <?=$check0?> />
                                        	Client
                                        </label>
                                        <label for="strAdmin" class="label label-success">
                                    		<input type="radio" name="strAccountType" id="strAdmin" value="1" <?=$check1?> />
                                        	Administrator
                                        </label> 
                                        <label for="strRestoOwner" class="label label-info">
                                    		<input type="radio" name="strAccountType" id="strRestoOwner" value="2" <?=$check2?> />
                                        	Restaurant Owner
                                        </label>
                                        <br />
                                    </dd>
                                    <?php
										}
									?>
                                    <dt>Gender</dt>
                                    <dd>
                                    	<select name="strGender" class="selectpicker" data-live-search="false">
                                    		<option value="<?=$strEditUserGender?>" />
                                            	<?php
													if($strEditUserGender=='m')
													{
														echo '&raquo; Male';
													}
													else
													{
														echo '&raquo; Female';	
													}
												?>
                                            </option>
                                        	<option value="">-- Select Gender --</option>
                                            <option value="m">Male</option>
                                            <option value="f">Female</option>
                                        </select>
                                    </dd>
                                    <dt>Civil Status</dt>
                                    <dd>
                                    	<select name="strCivilStatus" class="selectpicker" data-live-search="false">
                                    		<option value="<?=$strEditUserCivilStatus?>" />&raquo; <?=ucwords($strEditUserCivilStatus)?></option>
                                        	<option value="">-- Select Status --</option>
                                            <option value="single">Single</option>
                                            <option value="married">Married</option>
                                            <option value="separated">Separated</option>
                                            <option value="widowed">Widowed</option>
                                        </select>
                                    </dd>
                                    <dt>Birthday</dt>
                                    <dd>
                                    	<select name="strMonth" class="span2 selectpicker" data-live-search="true">
                                    		<option value="<?=$strEditUserBirthMonth?>" />&raquo; <?=$strEditUserBirthMonth?></option>
                                        	<option value="">-- Month --</option>
                                    	<?php
											$month = month();
											for($x=1; $x<=12; $x++)
											{
												echo '<option value="'.$month[$x].'">'.$month[$x].'</option>';
											}
										?>
                                        </select>
                                    	<select name="strDays" class="span2 selectpicker" data-live-search="true">
                                    		<option value="<?=$strEditUserBirthDay?>" />&raquo; <?=$strEditUserBirthDay?></option>
                                        	<option value="">-- Day --</option>
                                    	<?php
											$day = day();
											for($x=1; $x<=31; $x++)
											{
												echo '<option value="'.$day[$x].'">'.$day[$x].'</option>';
											}
										?>
                                        </select>
                                    	<select name="strYear" class="span2 selectpicker" data-live-search="true">
                                    		<option value="<?=$strEditUserBirthYear?>" />&raquo; <?=$strEditUserBirthYear?></option>
                                        	<option value="">-- Year --</option>
                                    	<?php
											$year = year();
											foreach($year as $key=>$val)
											{
												echo '<option value="'.$val.'">'.$val.'</option>';
											}
										?>
                                        </select>
                                    </dd>
                                </dl>
                                <dl class="dl-horizontal dl-header">
                                    <dt><h5><i class="icon-map-marker"></i> Location</h5></dt>
                                </dl>
                                <dl class="dl-horizontal">
                                    <dt>Address</dt>
                                    <dd><input type="text" name="strAddress" id="strAddress" value="<?=$strEditUserAddress?>" /></dd>
                                    <dt>City</dt>
                                    <dd><input type="text" name="strCity" id="strCity" value="<?=$strEditUserCity?>" /></dd>
                                    <dt>Hometown</dt>
                                    <dd><input type="text" name="strHometown" id="strHometown" value="<?=$strEditUserHometown?>" /></dd>
                                    <dt>Province</dt>
                                    <dd><input type="text" name="strProvince" id="strProvince" value="<?=$strEditUserProvince?>" /></dd>
                                    <dt>Country</dt>
                                    <dd>
                                    	<?=form_countries('country',$strEditUserCountry)?>
                                    </dd>
                                </dl>
                                <dl class="dl-horizontal dl-header">
                                    <dt><h5><i class="icon-tint"></i> Contact Information</h5></dt>
                                </dl>
                                <dl class="dl-horizontal">
                                    <dt>Mobile Phone</dt>
                                    <dd><input type="text" name="strMobile" id="strMobile" value="<?=$strEditUserMobile?>" /></dd>
                                    <dt>Landline No.</dt>
                                    <dd><input type="text" name="strLandline" id="strLandline" value="<?=$strEditUserLandline?>" /></dd>
                                    <dt>E-mail Address</dt>
                                    <dd><input type="text" name="strEmail" id="strEmail" value="<?=$strEditUserEmail?>" /></dd>
                                </dl>
                                <dl class="dl-horizontal">
                                	<dd><button class="btn btn-primary" name="doUpdate" value="update"><i class="icon-ok-sign"></i> Save Changes</button></dd>
                                </dl>
                                </form>
                            	<?php
										}
										else
										{
								?>
											<dl class="dl-horizontal dl-header">
												<dt><h5><i class="icon-exclamation-sign"></i> Page not found.</h5></dt>
											</dl>
                            	<?php
										}
									}
									else
									{
								?>
                                <dl class="dl-horizontal dl-header">
                                    <dt><h5><i class="icon-exclamation-sign"></i> Page not found.</h5></dt>
                                </dl>
                                <?php
									}
								?>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
            <footer>

            </footer>
        </div>
